package com.boat.framework.common.util;

import java.util.Map;

import cn.hutool.core.bean.BeanUtil;

/**
 * bean工具类
 * @author 周江
 *
 */
public class BeanUtils {
	/**
	 * javabean转为map
	 * @param bean
	 * @return
	 */
	public static Map<String, Object> beanToMap(Object bean) {
		// 忽略null值
		return BeanUtil.beanToMap(bean, false, true);
	}
}
